<?php

namespace app\api\model;

class UserDeedLimit extends Common
{
	public static function check($uid, $type = 1)
	{
		$limit = self::where(['user_id'=>$uid, 'type'=>$type, 'update_time'=>0])->order('id desc')->find();
		if (!$limit) return false;
		return $limit['expire_time'] > time();
	}
}
